import process from "process";

export const processInit = () => {
	process.on("uncaughtException", (err) => {
		console.error("Caught exception:", err);
		process.exit(1);
	});
	process.on("unhandledRejection", (reason, promise) => {
		console.error("Unhandled Rejection at:", promise, "Reason:", reason);
	});
};
